Cocktail Help Reference
NextPageAsync Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > IPager<T> Interface : NextPageAsync Method



onSuccess
An optional callback to be called when the page was successfully retrieved.
onFail
An optional callback to be called when the page retrieval failed.

Glossary Item Box

Moves to the page after the current page.

Syntax

Visual Basic (Declaration) 
Function NextPageAsync( _
   Optional ByVal onSuccess As Action(Of Page(Of T)), _
   Optional ByVal onFail As Action(Of Exception) _
) As PageOperationResult(Of T)
Visual Basic (Usage)Copy Code
Dim instance As IPager(Of T)
Dim onSuccess As Action(Of Page(Of T))
Dim onFail As Action(Of Exception)
Dim value As PageOperationResult(Of T)
 
value = instance.NextPageAsync(onSuccess, onFail)

Parameters

onSuccess
An optional callback to be called when the page was successfully retrieved.
onFail
An optional callback to be called when the page retrieval failed.

Return Value

Asynchronous operation result.

Exceptions

ExceptionDescription
System.InvalidOperationExceptionA page change is in progress.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.